
  ___  ____  ____  ____  ____ (R)
 /__    /   ____/   /   ____/
___/   /   /___/   /   /___/   15.1   Copyright 1985-2017 StataCorp LLC
  Statistics/Data Analysis            StataCorp
                                      4905 Lakeway Drive
     MP - Parallel Edition            College Station, Texas 77845 USA
                                      800-STATA-PC        http://www.stata.com
                                      979-696-4600        stata@stata.com
                                      979-696-4601 (fax)

32-user 64-core Stata network perpetual license:
       Serial number:  501506200495
         Licensed to:  Harvard-MIT Data Center
                       Cambridge, MA

Notes:
      1.  Stata is running in batch mode.
      2.  Unicode is supported; see help unicode_advice.
      3.  More than 2 billion observations are allowed; see help obs_advice.
      4.  Maximum number of variables is set to 5000; see help set_maxvar.

. do "dofiles/11_Table_A7.do" 

. /****************************************************************************
> *****************************
> Replication Files for Housing Discrimination and the Toxics Exposure Gap in t
> he United States: 
> Evidence from the Rental Market  by Peter Christensen, Ignacio Sarmiento-Barb
> ieri and Christopher Timmins
> *****************************************************************************
> ****************************/
. 
. clear all

. set matsize 11000

. 
. use "../stores/toxic_discrimination_data.dta"

. 
. 
. keep if sample==1
(801 observations deleted)

. 
. loc quartiles 4

. 
. set seed 1010101

. 
. 
. 
. *****************************************************************************
> *******************
. * Toxic Concentration
. *****************************************************************************
> ******************
. 
. eststo clear

. 
. forvalues i=1/3{
  2.         preserve
  3.         keep if order==`i'                                                
>       
  4.          eststo: disc_boot_logit choice Minority_dec2 Minority_dec3 Minori
> ty_dec4 , varlist(i.gender i.education_level)
  5.         estimates store modelA1`i'
  6.          eststo: disc_boot_logit choice Black_dec2 Black_dec3 Black_dec4 H
> ispanic_dec2 Hispanic_dec3 Hispanic_dec4, varlist(i.gender i.education_level)
  7.         estimates store modelA2`i'      
  8.          eststo: disc_boot_logit choice Minority_within1  Minority_more1, 
> varlist(i.gender i.education_level) 
  9.         estimates store modelB1`i'
 10.          eststo: disc_boot_logit choice Black_within1  Black_more1 Hispani
> c_within1  Hispanic_more1 , varlist(i.gender i.education_level)
 11.                 estadd local gender = "Yes", replace 
 12.                 estadd local edu = "Yes", replace 
 13.         estimates store modelB2`i'      
 14.         restore
 15.         }
(4,482 observations deleted)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Minority_d~2 |  -.3003535   .1183141    -2.54   0.025      -.50988    -.090827
Minority_d~3 |  -.1191351   .0955677    -1.25   0.235    -.2883792     .050109
Minority_d~4 |   .1337065   .1350053     0.99   0.340    -.1053789    .3727919
------------------------------------------------------------------------------
(est1 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codeclus
> ter(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
  Black_dec2 |  -.5449519   .1622962    -3.36   0.005    -.8323677   -.2575361
  Black_dec3 |  -.2629892   .1639361    -1.60   0.133    -.5533091    .0273307
  Black_dec4 |   .0022247   .1530045     0.01   0.989     -.268736    .2731855
Hispanic_d~2 |  -.0657128    .137668    -0.48   0.641    -.3095136     .178088
Hispanic_d~3 |   .0086034    .108006     0.08   0.938    -.1826681    .1998749
Hispanic_d~4 |   .2659513   .1817725     1.46   0.167    -.0559558    .5878583
------------------------------------------------------------------------------
(est2 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Minority_w~1 |   .0134508   .1029129     0.13   0.898     -.168801    .1957027
Minority_m~1 |  -.2148105   .0830834    -2.59   0.023    -.3619457   -.0676753
------------------------------------------------------------------------------
(est3 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codeclus
> ter(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Black_with~1 |  -.1301796   .1145496    -1.14   0.276    -.3330392    .0726801
 Black_more1 |  -.3982104   .1298001    -3.07   0.009    -.6280777    -.168343
Hispanic_w~1 |   .1469212    .149114     0.99   0.342    -.1171498    .4109921
Hispanic_m~1 |  -.0421759   .0737853    -0.57   0.577    -.1728448     .088493
------------------------------------------------------------------------------
(est4 stored)

added macro:
             e(gender) : "Yes"

added macro:
                e(edu) : "Yes"
(4,482 observations deleted)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Minority_d~2 |  -.3315153   .1028741    -3.22   0.007    -.5136984   -.1493321
Minority_d~3 |  -.0793138   .0881042    -0.90   0.384    -.2353405    .0767129
Minority_d~4 |  -.1879468   .1099164    -1.71   0.111    -.3826014    .0067078
------------------------------------------------------------------------------
(est5 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codeclus
> ter(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
  Black_dec2 |   -.386346   .1130167    -3.42   0.005     -.586491    -.186201
  Black_dec3 |  -.2498122   .0969056    -2.58   0.023    -.4214256   -.0781989
  Black_dec4 |  -.3600386   .1419725    -2.54   0.025    -.6114624   -.1086147
Hispanic_d~2 |  -.2677255   .1436913    -1.86   0.085    -.5221933   -.0132578
Hispanic_d~3 |   .0953116   .1167381     0.82   0.429    -.1114237     .302047
Hispanic_d~4 |  -.0315235   .1545105    -0.20   0.841    -.3051514    .2421044
------------------------------------------------------------------------------
(est6 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Minority_w~1 |  -.1185206   .0789823    -1.50   0.157     -.258393    .0213519
Minority_m~1 |  -.2232071   .0903641    -2.47   0.028    -.3832358   -.0631784
------------------------------------------------------------------------------
(est7 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codeclus
> ter(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Black_with~1 |  -.2963966   .1067073    -2.78   0.016    -.4853682   -.1074251
 Black_more1 |  -.3274993   .1154245    -2.84   0.014    -.5319084   -.1230902
Hispanic_w~1 |   .0502643   .1116973     0.45   0.660    -.1475442    .2480728
Hispanic_m~1 |  -.1074116   .1002726    -1.07   0.304    -.2849876    .0701644
------------------------------------------------------------------------------
(est8 stored)

added macro:
             e(gender) : "Yes"

added macro:
                e(edu) : "Yes"
(4,482 observations deleted)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Minority_d~2 |  -.2456973   .1243735    -1.98   0.070    -.4659545   -.0254401
Minority_d~3 |  -.1431326   .0952126    -1.50   0.157    -.3117478    .0254825
Minority_d~4 |  -.1673104   .1417088    -1.18   0.259    -.4182673    .0836465
------------------------------------------------------------------------------
(est9 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codeclus
> ter(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
  Black_dec2 |  -.4229201   .1621441    -2.61   0.022    -.7100664   -.1357737
  Black_dec3 |  -.3065369    .118754    -2.58   0.023    -.5168424   -.0962314
  Black_dec4 |  -.1652828   .2054275    -0.80   0.436    -.5290812    .1985156
Hispanic_d~2 |  -.1094903   .1276299    -0.86   0.407    -.3355143    .1165337
Hispanic_d~3 |   .0148606     .09805     0.15   0.882    -.1587794    .1885005
Hispanic_d~4 |  -.1701035   .1831449    -0.93   0.370    -.4944409     .154234
------------------------------------------------------------------------------
(est10 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Minority_w~1 |   -.075402    .088684    -0.85   0.411    -.2324554    .0816515
Minority_m~1 |  -.2740797   .1034319    -2.65   0.020    -.4572508   -.0909086
------------------------------------------------------------------------------
(est11 stored)
cluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codecluster(Zip_Code)Zip_Codeclus
> ter(Zip_Code)Zip_Code

Bootstrap Corrected Estimates
------------------------------------------------------------------------------
             |      Coef.   Std. Err.      t    P>|t|     [90% Conf. Interval]
-------------+----------------------------------------------------------------
Black_with~1 |  -.1964087   .1266228    -1.55   0.145    -.4206492    .0278318
 Black_more1 |  -.4122412   .1097844    -3.76   0.002     -.606662   -.2178204
Hispanic_w~1 |   .0487236    .098884     0.49   0.630    -.1263934    .2238407
Hispanic_m~1 |  -.1577006    .115359    -1.37   0.195    -.3619937    .0465925
------------------------------------------------------------------------------
(est12 stored)

added macro:
             e(gender) : "Yes"

added macro:
                e(edu) : "Yes"

. 
. 
. *****************************************************************************
> *******************
. * Export to latex
. * based on http://www.eyalfrank.com/code-riffs-stata-and-regression-tables/
. *****************************************************************************
> *******************
. 
. ************************************************************
. * estout Panel A1
. ************************************************************
. 
. 
. #delimit ; 
delimiter now ;
. esttab modelA11 
>        modelA12 
>        modelA13
>        using "../views/tableA7.tex", 
>        style(tex) 
>        eform
>        cells(b(star fmt(4)) ci(par fmt(4) par(( , )))  )  
>        label 
>        noobs
>        mlabels(,none)  
>        nonumbers 
>        collabels(,none) 
>        eqlabels(,none)
>        varlabels(Minority_dec2 "Minority 0-25th perc. Toxic Concentration" 
>                                  Minority_dec3 "Minority 25-75th perc. Toxic 
> Concentration"  
>                                  Minority_dec4 "Minority 75-100th perc. Toxic
>  Concentration" ) 
>        starl(* 0.1 ** 0.05 *** 0.01)   
>        level(90)     
>        prehead( 
>                                 \begin{table}[H]
>                                         \scriptsize \centering
>                                         \begin{threeparttable}
>                                         \captionsetup{justification=centering
> }
>                                           \caption{Estimates of Discriminator
> y Constraint on Housing Choice: \\ Inquiry Order}
>                                           \label{tab:inqorder}
> 
>                                         \begin{tabular}{@{\extracolsep{5pt}}l
> ccc}
>                                         \\[-1.8ex]\hline
>                                         \hline \\[-1.8ex]
>                                          & \multicolumn{3}{c}{\textit{Depende
> nt variable: {\it  Response}}} \\
>                                          \cline{2-4}
>                                         \\[-1.8ex] & (1) & (2) & (3) \\
>                                         \\[-1.8ex] &  1st Inquiry & 2nd Inqui
> ry & 3rd Inquiry\\
>                                         \hline \\[-1.8ex]
>                                         {\it Panel A: Quartiles of RSEI Toxic
>  Concentration}\\
>                                          \hline \\[-1.8ex]
>        )
>        posthead({\it Panel A.1.: Minority } \\
>                                 &  &  &    \\) 
>       prefoot() 
>        postfoot(
>       \hline \\[-1.8ex] )
>        
>        replace;
(output written to ../views/tableA7.tex)

. #delimit cr
delimiter now cr
. 
. ************************************************************
. * estout Panel A2
. ************************************************************
. 
. #delimit ; 
delimiter now ;
. esttab modelA21 
>        modelA22 
>        modelA23
>        using "../views/tableA7.tex", 
>        style(tex)
>        eform 
>        level(90)
>        cells(b(star fmt(4)) ci(par fmt(4) par(( , )))  )  
>        label 
>        noobs
>        mlabels(,none)
>        nonumbers 
>        collabels(,none)      
>        eqlabels(,none)
>        varlabels(Black_dec2 "Af. American 0-25th perc. Toxic Concentration" 
>                                  Black_dec3 "Af. American 25-75th perc. Toxic
>  Concentration" 
>                                  Black_dec4 "Af. American 75-100th perc. Toxi
> c Concentration"
>                                  Hispanic_dec2 "Hispanic/LatinX 0-25th perc. 
> Toxic Concentration" 
>                                  Hispanic_dec3 "Hispanic/LatinX 25-75th perc.
>  Toxic Concentration" 
>                                  Hispanic_dec4 "Hispanic/LatinX 75-100th perc
> . Toxic Concentration" ) 
>        starl(* 0.1 ** 0.05 *** 0.01)   
>        prehead( 
>        )
>        posthead({\it Panel A.2.: By Race }\\
>                 &  &  &    \\) 
>        prefoot() 
>        postfoot(
>             \\[-1.8ex]\hline 
>       \hline \\[-1.8ex] )
>        
>        append;
(output written to ../views/tableA7.tex)

. #delimit cr
delimiter now cr
. 
. 
. ************************************************************
. * estout Panel B1
. ************************************************************
. 
. #delimit ; 
delimiter now ;
. esttab modelB11 
>        modelB12 
>        modelB13
>        using "../views/tableA7.tex", 
>        style(tex)
>        eform 
>        level(90)
>        cells(b(star fmt(4)) ci(par fmt(4) par(( , )))  )  
>        label 
>        noobs
>        mlabels(,none)
>        nonumbers 
>        collabels(,none)      
>        eqlabels(,none)
>        varlabels(Minority_within1 "TRI plant less than 1 mile $\times$ Minori
> ty"
>                                  Minority_more1 "TRI plant more than 1 mile $
> \times$  Minority") 
>        starl(* 0.1 ** 0.05 *** 0.01)   
>        prehead(  {\it Panel B: Proximity to TRI Plant}\\
>                                  \hline \\[-1.8ex]
>        )
>        posthead({\it Panel B.1.: Minority} \\
>                                  &  &  &    \\) 
>        prefoot() 
>        postfoot(
>       \hline \\[-1.8ex] )
>        
>        append;
(output written to ../views/tableA7.tex)

. #delimit cr
delimiter now cr
. 
. ************************************************************
. * estout Panel B2
. ************************************************************
. 
. #delimit ; 
delimiter now ;
. esttab modelB21 
>        modelB22 
>        modelB23
>        using "../views/tableA7.tex", 
>        style(tex) 
>        eform
>        cells(b(star fmt(4)) ci(par fmt(4) par(( , )))  )  
>        label 
>        noobs
>        mlabels(,none)  
>        nonumbers
>        collabels(,none) 
>        eqlabels(,none)
>        varlabels(Hispanic_within1 "TRI plant less than 1 mile $\times$ Hispan
> ic/LatinX"
>                                  Hispanic_more1 "TRI plant more than 1 mile $
> \times$  Hispanic/LatinX"
>                                  Black_within1 "TRI plant less than 1 mile $\
> times$ African American"
>                                  Black_more1 "TRI plant more than 1 mile $\ti
> mes$  African American") 
>        starl(* 0.1 ** 0.05 *** 0.01) 
>         stats(gender 
>              edu              
>              N
>              , fmt(2 0 0 0 %9.0gc %9.0gc 2)
>              labels("Gender" 
>                    "Education Level" 
>                    "\hline Observations"
>                    )) 
>        level(90)     
>          prehead( 
>        )
>        posthead({\it Panel B.2.: By Race }\\
>                                          &  &  &    \\) 
>       prefoot() 
>        postfoot(           
>                                 \hline
>                                 \hline \\[-1.8ex]
>                                 \end{tabular}
>                                 \begin{tablenotes}[scriptsize,flushleft] \scr
> iptsize
>                                 \item Notes: 
>                                 \end{tablenotes} 
>                                 \end{threeparttable}
>                                 \end{table})
>        append;
(output written to ../views/tableA7.tex)

. #delimit cr
delimiter now cr
. 
. 
. 
. *end 
. 
end of do-file
